package com.tanhua.dubbo.api;

import com.tanhua.dubbo.pojo.BlackList;
import com.tanhua.dubbo.pojo.Settings;
import com.tanhua.dubbo.pojo.UserInfo;
import com.tanhua.dubbo.vo.PageInfo;

public interface MyApi {

    /**
     * 查询用户个人信息
     * @param userId
     * @return
     */
    UserInfo queryUserInfo(Long userId);

    /**
     * 设置陌生人问题
     * @param content
     * @return
     */
    Boolean saveQuestions(Long userId, String content);

    /**
     * 查询用户通知设置
     * @param userId
     * @return
     */
    Settings querySettings(Long userId);

    /**
     * 查询陌生人问题
     * @param userId
     * @return
     */
    String queryQuestion(Long userId);

    /**
     * 通知设置-修改保存
     * @param userId
     * @param likeNotification
     * @param pinglunNotification
     * @param gonggaoNotification
     * @return
     */
    Boolean updateSettings(Long userId, Boolean likeNotification, Boolean pinglunNotification, Boolean gonggaoNotification);

    /**
     * 黑名单 - 翻页列表
     * @param userId
     * @return
     */
    PageInfo<BlackList> queryBlackList(Long userId, Integer page, Integer pageSize);

    /**
     * 查询黑名单总数
     * @param userId
     * @return
     */
    Integer queryBlackListCount(Long userId);

    /**
     * 删除黑名单
     * @param userId
     * @param blackUserId
     * @return
     */
    Boolean deleteBlackUser(Long userId, Long blackUserId);
}
